Xbasic
curl_get_file Function
Syntax
dim result as L = curl_get_file(url as C, filename as C)
Arguments
- urlCharacter
The URL where the file is stored.
- filenameCharacter
The name of the file.
Returns
- resultLogical
Returns .t. if the operation succeeds. Otherwise, .f..
Description
Downloads a file using CURL.
Discussion
The curl_get_file() function can be used to download a file from a remote location. The function uses CURL to download the file.
Example
result = curl_get_file("https://www.example.com/documents","myfile.pdf")
See Also